package ccpvspiral1;

public class IndexedParameter<T> {
  private T value;
  private int index;
  

  
  public IndexedParameter(int index, T value) {
	  this.setValue(value);
	  this.setIndex(index);
  }
  
  public IndexedParameter(int index) {
	  //this.setValue(0);
	  this.setIndex(index);
  }

/**
 * @param value the value to set
 */
public void setValue(T value) {
	this.value = value;
}

/**
 * @return the value
 */
public T getValue() {
	return value;
}

/**
 * @param name the name to set
 */
public void setIndex(int index) {
	this.index = index;
}

/**
 * @return the name
 */
public int getIndex() {
	return index;
}
  
/* (non-Javadoc)
 * @see java.lang.Object#toString()
 */
public String toString() {
	return "("+ index + ", " + value + ")";
}


}
